package com.t11;

import java.util.*;

/**
 * Created by xuyiwei on 2018/7/22.
 */
public class E14 {
    public static void main(String[] args) {
        List<Integer> list = new LinkedList<>();
        ListIterator<Integer> it = list.listIterator();
        for (int i = 1; i < 10; i++) {
            it.add(i);
            if(i%2==0){
                it.previous();
            }

        }
        System.out.println(list);
    }
}
